package Practice02;

import java.util.Scanner;

public class test6 {
    public static void main(String[] args) {
        int w=0;
        String[] day = {"日","一","二","三","四","五","六"};
        Scanner scanner = new Scanner(System.in);
        w = scanner.nextInt();

        if (w == 0) {
            System.out.println("昨天是周" + day[6]);
        }else {
            System.out.println("昨天是周" + day[w-1]);
        }
        System.out.println("明天是周"+day[w+1]);
    }
}
